/**
    ******************************************************************************
    * @file    employee.h
    * @author  debian
    * @version V1.0.0
    * @date    2020-01-21
    * @brief   职员类
    ******************************************************************************
    * @attention
    *
    *
    ******************************************************************************
    */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __EMPLOYEE_H
#define __EMPLOYEE_H

#ifdef __cplusplus
    extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
//#include "handler.h"

/** @addtogroup Employee
    * @{
    */
class Employee : public Handler
{
public:
    Employee(Handler *next) : Handler(next) {
        printf("employee\n");
        set_max_loan(max_loan);
    }

    // void show() {
    //     printf("Employee %p %d\n", next_handler, max_loan);
    // }

protected:
    unsigned int max_loan = 10;
};


/* Exported types ------------------------------------------------------------*/
/** @defgroup 
    * @{
    */ 



/**
    * @}
    */


/* Exported constants --------------------------------------------------------*/

/* Exported macro ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/ 


/**
    * @}
    */

#ifdef __cplusplus
}
#endif

#endif /* __EMPLOYEE_H */

/******************* (C) 2020 HOME 深圳龙华 *****END OF FILE****/

